package fserv.entities;

/**
 * Exception thrown when a message id is inconsistent.
 * 
 * @author Arthur Bit-Monnot <abit@etud.insa-toulouse.fr>
 * @author Julien Marchand <jmarchan@etud.insa-toulouse.fr>
 */
public class InvalidMsgIdException extends Exception {
    private int msgId;
    
    public InvalidMsgIdException(int msgId) {
        this.msgId = msgId;
    }

    @Override
    public String toString() {
        return "InvalidMsgIdException for " + this.getClass() + " (msgId = " + msgId + ")";
    }
}